package it.globalgamejam.scar.game.world 
{
	import flash.display.BitmapData;
	import it.globalgamejam.scar.Assets;
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Image;
	import net.flashpunk.graphics.Stamp;
	import net.flashpunk.utils.Draw;
	/**
	 * ...
	 * @author N1xx1
	 */
	public class Wall extends Entity
	{
		
		public function Wall(_type:int, x:Number, y:Number) 
		{
			super(x, y);
			
			var image:Image;
			switch(_type) {
				case 1:
					image = new Image(Assets.CORNER1);
					break;
				case 2:
					image = new Image(Assets.CORNER2);
					break;
				case 3:
					image = new Image(Assets.CORNER3);
					break;
				case 4:
					image = new Image(Assets.CORNER4);
					break;
					
				case 5:
					image = new Image(Assets.WALL_SIDE_5);
					break;
				case 6:
					image = new Image(Assets.WALL_SIDE_6);
					break;
				case 7:
					image = new Image(Assets.WALL_SIDE_7);
					break;
				case 8:
					image = new Image(Assets.WALL_SIDE_8);
					break;
					
				case 10:
					image = new Image(Assets.WALL_WALL_0);
					break;
				case 11:
					image = new Image(Assets.WALL_WALL_1);
					break;
				case 12:
					image = new Image(Assets.WALL_WALL_2);
					break;
				case 13:
					image = new Image(Assets.WALL_WALL_3);
					break;
				
				default:
					image = new Image(Assets.WALL);
					break;
			}
			image = new Image(Assets.WALL);
			image.originX = 60;
			image.originY = 60;
			image.x = 60;
			image.y = 60;
			
			graphic = image;
			
			type = "wall";
			
			layer = 40;
			
			setHitbox(120, 120);
		}
		
		override public function render():void 
		{
			super.render();
		}
		
	}

}